{extend name='public/base' /}

{block name="content"}
<style type="text/css">
  html {
    background-color: #fff !important;
  }
  .center{
    text-align: center;
  }
</style>
<div class="layui-col-md12">
  <button class="layui-btn layui-bg-black iconfont icon-daochu layui-btn-sm" lay-submit id="export" >导出</button>
  <div class="center" style="font-size: 20px">未上报商户</div>
  <div class="" id="my-table">

    <table class="layui-table">
      <thead>
      <tr>
        <td>商户</td>
        <td>铺位号</td>
      </tr>
      </thead>
      <tbody class="role_list">
      {foreach $list as $key=>$id}
      <tr>
        <td>{$id.name}</td>
        <td>{$id.berth_number}</td>
      </tr>
      {/foreach}
      </tbody>

    </table>
  </div>
</div>
{/block}

{block name="js"} <!--js处理区-->
<script>
  layui.use(['element', 'table', 'form', 'jquery', 'lucky', 'opTable','laydate'], function () {
    //导出事件
    $('#export').on('click',function () {

      var url = "{:url('export')}";
      window.open(url);
    });




  });

</script>

{/block}
